//
//  VideoDownLoadManager.h
//  JZMCFM
//
//  Created by Mc on 15/11/7.
//  Copyright (c) 2015年 陈卓. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol VideoDownLoadManagerDelegate <NSObject>

- (void)videoDidUpdatedProgressWithVideoModel:(DetailModel2 *)model;

@end

@interface VideoDownLoadManager : NSObject
@property(nonatomic,assign)id<VideoDownLoadManagerDelegate>delegate;

+ (instancetype)sharedInstance;

@property(nonatomic,strong)NSOperationQueue *downLoadQueue;
// 用来保存创建的下载管理类,方便以后对应管理
@property(nonatomic,strong)NSMutableDictionary *httpOperationDict;
@property(nonatomic,strong)NSMutableArray *downVideoArray;

// 开始下载
-(void)startAVideoWithVideoModel:(DetailModel2 *)downLoadVideo;
// 暂停下载
-(void)downloadPausewithModel:(DetailModel2 *)pauseModel;
// 断点继续下载
-(void)downloadResumeWithModel:(DetailModel2 *)resumeModel;
@end
